import request from '@/utils/request'

export function queryAllByPager(params) {
  return request({
    url: 'rest/api/manager/quartzDb',
    method: 'get',
    params
  })
}

export function queryAllLayz(params) {
  return request({
    url: 'rest/api/manager/quartzDb/layz',
    method: 'get',
    params
  })
}

export function saveObject(data) {
  return request({
    url: 'rest/api/manager/quartzDb/save',
    method: 'post',
    data
  })
}

export function getEntity(params) {
  return request({
    url: 'rest/api/manager/quartzDb/entity',
    method: 'get',
    params
  })
}

export function update(data) {
  return request({
    url: 'rest/api/manager/quartzDb/update',
    method: 'post',
    data
  })
}

export function deleteObject(data) {
  return request({
    url: 'rest/api/manager/quartzDb/delete',
    method: 'post',
    data
  })
}

export function analysisObject(data) {
  return request({
    url: 'rest/api/manager/quartzDb/analysis',
    method: 'post',
    data
  })
}
